package yzbx.personalwebsite.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * {@code @Author} zxm
 * {@code @Description} 读取配置参数
 * {@code @Date} 2024/11/11/15:40
 * {@code @Version} 1.0
 */

@Getter
@Component
@Configuration
@PropertySource(value = "classpath:config.properties", encoding = "UTF-8")
public class ConfigData {

    @Value("${redis.ip}")
    private String redisIp;
    @Value("${redis.port}")
    private int redisPort;
    @Value("${usefWebsPath}")
    private String usefWebsPath;
    @Value("${WangPath}")
    private String WangPath;
    @Value("${WangPathLocal}")
    private String WangPathLocal;
    @Value("${txPath}")
    private String txPath;
    @Value("${txPathLocal}")
    private String txPathLocal;

}
